package com.github.niefy.modules.third.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.github.niefy.common.utils.Json;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;

/**
 * 二三方模板消息未阅读记录
 */

@Data
@Builder
@TableName("third_template_msg_unread")
public class ThirdTemplateMsgUnread implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 消息ID主键
     */
    @TableId(type = IdType.INPUT)
    private Long msgId;

    /**
     * openid
     */
    private String openId;

    /**
     * 用户id
     */
    private String thirdId;

    /**
     * 阅读标志
     */
    private String readFlag;


    @Override
    public String toString() {
        return Json.toJsonString(this);
    }
}
